package com.ylr.basic.framework.mapper;

import com.ylr.basic.framework.entity.EphemeralDataEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2023-07-06 22:41:05
 * className: EphemeralDataMapper
 * version: 1.0
 * description:
 */
public interface EphemeralDataMapper extends BaseMapper<EphemeralDataEntity> {

    /**
     * 查询业务最大版本号
     * @param businessId   业务主键
     * @param businessType 业务类型
     * @param deleteStatus 删除状态
     * @return 版本号值
     */
    Integer selectMaxVersion(@Param("businessId") Long businessId, @Param("businessType") Integer businessType,
                             @Param("deleteStatus") Integer deleteStatus);

}
